package com.eya.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.List;

import javax.annotation.Resource;

/**
 * TODO(这个类的作用)
 *
 * @auther: luolin
 * @since: 2018/3/8 16:13
 */
@RestController
@RequestMapping(value = "user")
public class UserController {

	@Autowired
	RestTemplate restTemplate;


	@RequestMapping(value = "getUsers")
	public String getAllUser() {

		return restTemplate.getForEntity("http://ek-service/user/getall",String.class).getBody();
	}


}
